/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eproject2;

import java.sql.Date;
import java.util.Vector;

/**
 *
 * @author Hoang
 */
public class Contact {

    String fullname, homephone, cellphone, workphone, email, homepage, address, remark;
    int CatID;
    int ID;
    Date birthday;

    public Contact() {
        fullname = "";
        homephone = "";
        cellphone = "";
        workphone = "";
        email = "";
        homepage = "";
        address = "";
        remark = "";
        birthday = null;
        CatID = 0;
    }

    public Contact(String fullname, String homephone, String cellphone, String workphone, String email, String homepage, String address, String remark, int CatID, Date birthday) {
        this.fullname = fullname;
        this.homephone = homephone;
        this.cellphone = cellphone;
        this.workphone = workphone;
        this.email = email;
        this.homepage = homepage;
        this.address = address;
        this.remark = remark;
        this.CatID = CatID;
        this.birthday = birthday;
    }

    public Date getBirthday() {
        return birthday;
    }

    public String getAddress() {
        return address;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public void setHomephone(String homephone) {
        this.homephone = homephone;
    }

    public void setWorkphone(String workphone) {
        this.workphone = workphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setHomepage(String homepage) {
        this.homepage = homepage;
    }

    public void setCatID(int CatID) {
        this.CatID = CatID;
    }

    public String getFullname() {
        return fullname;
    }

    public String getHomephone() {
        return homephone;
    }

    public String getWorkphone() {
        return workphone;
    }

    public String getCellphone() {
        return cellphone;
    }

    public String getEmail() {
        return email;
    }

    public String getHomepage() {
        return homepage;
    }

    public int getCatID() {
        return CatID;
    }

    public Vector tovector() {
        Vector tmp = new Vector();
        tmp.add(this.getFullname());
        tmp.add(this.getAddress());
        tmp.add(this.getHomephone());
        tmp.add(this.getEmail());
        tmp.add(this.getWorkphone());
        tmp.add(this.getCellphone());
        tmp.add(this.getHomepage());
        tmp.add(this.getBirthday());
        tmp.add(this.getCatID());
        tmp.add(this.ID);
        return tmp;
    }
}
